<!--${_TPL.put("nosidebar", 1)}-->
<!--$embed{"header.htm"}-->
<script>
var jumpurl = '${jumpurl}'
</script>
<script language="javascript" type="text/javascript" src="${request.contextPath}/template/default/do_register.js"></script>

<form id="registerform" name="registerform" action="do.html?ac=${_SCONFIG['register_action']}&${url_plus}&ref" method="post" class="c_form">
<table cellpadding="0" cellspacing="0" class="formtable">
	<caption>
		<h2>注册本站帐号</h2>
		<p>请完整填写以下信息进行注册。<br>注册完成后，该帐号将作为您在本站的通行帐号，您可以享受本站提供的各种服务。</p>
	</caption>
	<!--$if{ invitearr}-->
	<tr>
		<th width="100">好友邀请</th>
		<td>
			<a href="space.html?${url_plus}" target="_blank"><img src="<!--${&com.heaven.web.utils.Common.avatar(invitearr['uid'], 'small')}-->" alt="${_SN[invitearr['uid']]}" id="avatar" align="absmiddle" /></a>
			<a href="space.html?${url_plus}" target="_blank">${_SN[invitearr['uid']]}</a>
		</td>
	</tr>
	<!--$end-->
	
	<!--$if{_SCONFIG['seccode_register'].toInteger}-->
	<!--$if{_SCONFIG['questionmode'].toInteger}-->
	<tr>
		<th style="vertical-align: top;">请先回答问题</th>
		<td>
			<p><!--${&com.heaven.web.utils.Common.question()}--></p>
			<input type="text" id="seccode" name="seccode" value="" class="t_input" onBlur="checkSeccode()" tabindex="1" autocomplete="off" />&nbsp;<span id="checkseccode">&nbsp;</span>
		</td>
	</tr>
	<!--$else-->
	<tr>
		<th style="vertical-align: top;">验证码</th>
		<td>
			<script>seccode();</script>
			<p>请输入上面的4位字母或数字，看不清可<a href="javascript:updateseccode()">更换一张</a></p>
			<input type="text" id="seccode" name="seccode" value="" class="t_input" onBlur="checkSeccode()" tabindex="1" autocomplete="off" />&nbsp;<span id="checkseccode">&nbsp;</span>
		</td>
	</tr>
	<!--$end-->
	<!--$end-->
	<tr><th width="100">用户名</th><td><input type="text" id="username" name="username" value="" class="t_input" onBlur="checkUserName()" tabindex="2" />&nbsp;<span id="checkusername">&nbsp;</span></td></tr>
	<tr>
		<th>注册密码</th>
		<td>
			<input type="password" name="password" id="password" value="" class="t_input" onBlur="checkPassword()" onkeyup="checkPwd(this.value);" tabindex="3" />&nbsp;<span id="checkpassword">&nbsp;</span><br/>
			<style>
				.psdiv0,.psdiv1,.psdiv2,.psdiv3,.psdiv4{position:relative;height:30px;color:#666}/*密码强度容器*/
				.strongdepict{position:absolute; width:300px;left:0px;top:3px}/*密码强度固定文字*/
				.strongbg{position:absolute;left:0px;top:22px;width:235px!important;width:234px;height:10px;background-color:#E0E0E0; font-size:0px;line-height:0px}/*灰色强度背景*/
				.strong{float:left;font-size:0px;line-height:0px;height:10px}/*色块背景*/
				
				.psdiv0 span{display:none}
				.psdiv1 span{display:inline;color:#F00}
				.psdiv2 span{display:inline;color:#C48002}
				.psdiv3 span{display:inline;color:#2CA4DE}
				.psdiv4 span{display:inline;color:#063}
				
				.psdiv0 .strong{ width:0px}
				.psdiv1 .strong{ width:25%;background-color:#F00}
				.psdiv2 .strong{ width:50%;background-color:#F90}
				.psdiv3 .strong{ width:75%;background-color:#2CA4DE}
				.psdiv4 .strong{ width:100%;background-color:#063}
			</style>
			<div class="psdiv0" id="chkpswd">
				<div class="strongdepict">密码安全程度：<span id="chkpswdcnt">太短</span></div>
				<div class="strongbg">
					<div class="strong"></div>			
				</div>		
			</div>
		</td>
	</tr>
	<tr><th>再次输入密码</th><td><input type="password" id="password2" name="password2" value="" class="t_input"  onBlur="checkPassword2()" tabindex="4" />&nbsp;<span id="checkpassword2">&nbsp;</span></td></tr>
	<tr><th>邮箱</th><td><input type="text" id="email" name="email" value="@" class="t_input" tabindex="5" />
		<br>请准确填入您的邮箱，在忘记密码，或者您使用邮件通知功能时，会发送邮件到该邮箱。</td></tr>
	
	<!--$if{ register_rule}-->
	<tr><th>服务条款</th>
		<td><div name="rule" style="border:1px solid #C3C3C3;width:500px;height:100px;overflow:auto;padding:5px;">${register_rule}</div>
		<input type="checkbox" name="accede" id="accede" value="1">我已阅读，并同意以上服务条款
		</td>
	</tr>
	<!--$end-->

	<tr><th>&nbsp;</th>
		<td>
		<input type="hidden" name="refer" value="space.html?do=home" />
		<input type="submit" id="registersubmit" name="registersubmit" value="注册新用户" class="submit" onclick="<!--$if{ register_rule}-->if(!checkClause()){return false;}<!--$end-->ajaxpost('registerform', 'registerstatus', 'register');" tabindex="6" />
		</td>
	</tr>
	<tr><th>&nbsp;</th><td id="registerstatus" style="color:red; font-weight:bold;"></td></tr>
</table>
<input type="hidden" name="formhash" value="${&integeration.Func.formhash()}" /></form>
<!--$embed{"footer.htm"}-->